package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.StatMonthSellBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface IStatMonthSellMapper extends BaseMapper<StatMonthSellBean> {
    List<StatMonthSellBean> findByYer(String year);

    @Select("SELECT DISTINCT LEFT(s_date,4) FROM t_sell")
    List<Integer> findYear();
}
